package com.ghost.view.pop.task
{
	import com.ghost.interfaces.Ipop_win;
	import com.ghost.manager.Pop_win_manager;
	import com.ghost.manager.Tip_manager;
	import com.ghost.view.pop.Pop_base;
	
	import flash.display.Sprite;
	
	/**
	 * @author ghost
	 * 技能系统 
	 */
	public class Task extends Pop_base implements Ipop_win
	{
		public function Task()
		{
			var bb:Sprite = new Sprite();
			bb.graphics.beginFill(0xf46500);
			bb.graphics.drawRect(0,0,550,100);
			bb.graphics.endFill();
			this.addChild(bb);
			
			var ss:Sprite = new Sprite();
			ss.graphics.beginFill(0xf68f00);
			ss.graphics.drawRect(0,0,100,20);
			ss.graphics.endFill();
			this.addChild(ss);
			
			var close:Sprite = new Sprite();
			close.graphics.beginFill(0xff0000);
			close.graphics.drawCircle(10,10,10);
			close.graphics.endFill();
			this.addChild(close);
			close.x = 130;
			
			this.name="Task";
			this.type = 0;
			this.back_mc = ss;
			super();
			init();
		}
		public function creat_win():void
		{
			if(!Pop_win_manager.getInstance().pop_main.contains(this))
			{
				Pop_win_manager.getInstance().Creat_pop_win(this,true);
			}
		}
	}
}